<div class="form">
<?php
    /**
     * @var $form CActiveForm
     */
    $form=$this->beginWidget('CActiveForm', array(
	'id'=>'update-user-form',
	'enableAjaxValidation'=>false,
)); ?>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'username'); ?>
		<?php echo $form->textField($model,'username',array('size'=>60,'maxlength'=>150,'disabled'=>true)); ?>
		<?php echo $form->error($model,'username'); ?>
	</div>
    <div class="row">
		<?php echo $form->labelEx($model,'newpass'); ?>
		<?php echo $form->passwordField($model,'newpass',array('size'=>60,'maxlength'=>150)); ?>
		<?php echo $form->error($model,'newpass'); ?>
	</div>
    <div class="row">
		<?php echo $form->labelEx($model,'newpass1'); ?>
		<?php echo $form->passwordField($model,'newpass1',array('size'=>60,'maxlength'=>150)); ?>
		<?php echo $form->error($model,'newpass1'); ?>
	</div>
    <div class="row">
		<?php echo $form->labelEx($model,'email'); ?>
		<?php echo $form->textField($model,'email',array('size'=>60,'maxlength'=>150,'disabled'=>true)); ?>
		<?php echo $form->error($model,'email'); ?>
	</div>
    <div class="row">
		<?php echo $form->labelEx($model,'home_page'); ?>
		<?php echo $form->textField($model,'home_page',array('size'=>60,'maxlength'=>150)); ?>
		<?php echo $form->error($model,'home_page'); ?>
	</div>
	<div class="row">
		<?php echo $form->labelEx($model,'display_name'); ?>
		<?php echo $form->textField($model,'display_name',array('size'=>60,'maxlength'=>250)); ?>
		<?php echo $form->error($model,'display_name'); ?>
	</div>
	<div class="row">
		<?php echo $form->labelEx($model,'role'); ?>
		<?php echo $form->listBox($model,'role',$roles,array('size'=>1)); ?>
		<?php echo $form->error($model,'role'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton('Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->